package com.example.demo.service.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.example.demo.domain.tos.Tos;
import com.example.demo.mapper.service.ServiceMapper;
import com.example.demo.mapper.tos.TosMapper;

@Service("serviceService")
public class ServiceServiceImpl implements ServiceService{
	
	@Autowired 
	ServiceMapper serviceMapper;
	
	@Autowired 
	TosMapper tosMapper;

	@Override
	public int deleteByPrimaryKey(Integer service_Id) {
		// TODO 自动生成的方法存根
		return this.deleteByPrimaryKey(service_Id);
	}

	@Override
	public int insert(com.example.demo.domain.service.Service record) {
		// TODO 自动生成的方法存根
		return this.serviceMapper.insert(record);
	}

	@Override
	public int insertSelective(com.example.demo.domain.service.Service record) {
		// TODO 自动生成的方法存根
		return this.serviceMapper.insert(record);
	}

	@Override
	public com.example.demo.domain.service.Service selectByPrimaryKey(Integer service_Id) {
		// TODO 自动生成的方法存根
		return this.serviceMapper.selectByPrimaryKey(service_Id);
	}

	@Override
	public int updateByPrimaryKeySelective(com.example.demo.domain.service.Service record) {
		// TODO 自动生成的方法存根
		return this.serviceMapper.updateByPrimaryKeySelective(record);
	}

	@Override
	public int updateByPrimaryKey(com.example.demo.domain.service.Service record) {
		// TODO 自动生成的方法存根
		return this.serviceMapper.updateByPrimaryKey(record);
	}

	@Override
	public List<com.example.demo.domain.service.Service> selectServiceList(
			com.example.demo.domain.service.Service service) {
		// TODO 自动生成的方法存根
		return this.serviceMapper.selectServiceList(service);
	}



	@Override
	public int deleteServiceByIds(String[] serviceIds) {
		// TODO 自动生成的方法存根
		return this.serviceMapper.deleteServiceByIds(serviceIds);
	}
	@Override
	public int selectCountByTosId(Integer id) {
		// TODO Auto-generated method stub
		return this.tosMapper.selectCountByTosId(id);
	}
	@Override
	public List<Tos> selectTosName() {
		// TODO Auto-generated method stub
		return this.tosMapper.selectTosName();
	}


}
